package com.ruoyi.parcel.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * order对象 e_payment_order
 * 
 * @author ruoyi
 * @date 2024-12-02
 */
public class EPaymentOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 关联的订单号 */
    @Excel(name = "关联的订单号")
    private String orderNumber;

    /** 派件费 */
    @Excel(name = "派件费")
    private BigDecimal deliveryFee;

    /** 优惠 */
    @Excel(name = "优惠")
    private BigDecimal discount;

    /** 实付款 */
    @Excel(name = "实付款")
    private BigDecimal actualPayment;

    /** 费用类型 */
    @Excel(name = "费用类型")
    private String costType;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String paymentMethod;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionTime;

    /** 交易号 */
    @Excel(name = "交易号")
    private String transactionNumber;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setDeliveryFee(BigDecimal deliveryFee) 
    {
        this.deliveryFee = deliveryFee;
    }

    public BigDecimal getDeliveryFee() 
    {
        return deliveryFee;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setActualPayment(BigDecimal actualPayment) 
    {
        this.actualPayment = actualPayment;
    }

    public BigDecimal getActualPayment() 
    {
        return actualPayment;
    }
    public void setCostType(String costType) 
    {
        this.costType = costType;
    }

    public String getCostType() 
    {
        return costType;
    }
    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }
    public void setTransactionTime(Date transactionTime) 
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime() 
    {
        return transactionTime;
    }
    public void setTransactionNumber(String transactionNumber) 
    {
        this.transactionNumber = transactionNumber;
    }

    public String getTransactionNumber() 
    {
        return transactionNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("deliveryFee", getDeliveryFee())
            .append("discount", getDiscount())
            .append("actualPayment", getActualPayment())
            .append("costType", getCostType())
            .append("paymentMethod", getPaymentMethod())
            .append("transactionTime", getTransactionTime())
            .append("transactionNumber", getTransactionNumber())
            .toString();
    }
}
